package com.webapp.org.bean;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "category")
public class CategoryBean implements Serializable
{
	private static final long serialVersionUID = 1446978479298841170L;
	private int categoryID;
	private String categoryName;
	private String remark;

	public CategoryBean()
	{

	}

	public CategoryBean(int categoryID, String categoryName, String remark)
	{
		super();
		this.categoryID = categoryID;
		this.categoryName = categoryName;
		this.remark = remark;
	}

	@Id
	@GeneratedValue
	@Column(name = "category_id")
	public int getCategoryID()
	{
		return categoryID;
	}

	public void setCategoryID(int categoryID)
	{
		this.categoryID = categoryID;
	}

	@Column
	public String getCategoryName()
	{
		return categoryName;
	}

	public void setCategoryName(String categoryName)
	{
		this.categoryName = categoryName;
	}

	@Column
	public String getRemark()
	{
		return remark;
	}

	public void setRemark(String remark)
	{
		this.remark = remark;
	}

	@Override
	public String toString()
	{
		return "CategoryBean [categoryID=" + categoryID + ", categoryName="
				+ categoryName + ", remark=" + remark + "]";
	}

}
